Implement token threading
authorTom Tromey <tromey@redhat.com>
Tue, 10 Jul 2012 14:25:22 +0000 (08:25 -0600)
committerTom Tromey <tromey@redhat.com>
Tue, 10 Jul 2012 14:25:22 +0000 (08:25 -0600)
commitda4529a45a2a348deeebf40c790fd796bcc09a2b
tree2ec69ea2280248cf1e1d5a7220eae5136101fceb
parentb7ba8bd66b579bb47512a0b2b17bc9e516211100
Implement token threading

* bytecode.c (BYTE_CODE_THREADED): New macro.
(BYTE_CODES): New macro.  Replaces all old byte-code defines.
(enum byte_code_op): New type.
(CASE, NEXT, FIRST, CASE_DEFAULT, CASE_ABORT): New macros.
(exec_byte_code): Use them.  Use token threading when applicable.
src/ChangeLog
src/bytecode.c